package com.yonyou.common.service.messagecenter.util;

public class MqConsts {
    public static final String MES_PLACE_HOLDER_2="@&amp;amp;holder&amp;amp;@";
	public static final String MES_PLACE_HOLDER="@&holder&@";
    public static final String MES_PLACE_HOLDER_NEW="@&amp;holder&amp;@";
    public static final String MES_PLACE_HOLDER_3="\"}@&";
	//public static final String APPID_PLACE_HOLDER="*&@@@$*";
	public static final String DEFAULT_DIRECT_EXCHANGE="resend.direct";
	//准备开始消费消息
	public static final String CONSUMER_STATUS_START="start";
	//消息消费失败
	public static final String CONSUMER_STATUS_FAIL="fail";
	public static final String CONSUMER_STATUS_DIRECT_FAIL="directfail";
	//消息消费成功
	public static final String CONSUMER_STATUS_FINISH="finish";
	//准备开始发送到MQ
	public static final String PRODUCE_STATUS_START="start";
	//发送到MQ失败
	public static final String PRODUCE_STATUS_FAIL="fail";
	//发送到MQ完成
	public static final String PRODUCE_STATUS_FINISH="finish";
	//需要重新发送的消息写入到重发表中
	public static final String RESEND_STATUS_START="start";
	//消息重新发送的MQ成功
	public static final String RESEND_STATUS_SEND="resended";
	//消息重新发送的MQ失败
	public static final String RESEND_STATUS_FAIL="resendfail";
	//重发的消息被app成功处理
	public static final String RESEND_STATUS_FINISH="finish";
	//消费时收到相同的消息，在消费历史表发现已经成功处理过，因此重发表直接置成成功重发
	public static final String RESEND_STATUS_DIRECT_FINISH="directfinish";
	public static final String RESPONSE_DATA_CODE="result";
	public static final String RESPONSE_DATA_MESSAGE="message";
	public static final String RESPONSE_DATA_VALUE_SUCCESS="200";
	public static final String RESPONSE_DATA_VALUE_SUCCESS_MESSAGE="API调用成功";
	public static final String RESPONSE_DATA_VALUE_INTEL_ERROR="999000";
	public static final String RESPONSE_DATA_VALUE_INTEL_ERROR_MESSAGE="内部错误";
	public static final String RESPONSE_DATA_VALUE_PARAM_LACK="999101";
	public static final String RESPONSE_DATA_VALUE_PARAM_LACK_MESSAGE="输入参数不完整";
	public static final String RESPONSE_DATA_VALUE_REQUEST_ERROR="999102";
	public static final String RESPONSE_DATA_VALUE_REQUEST_ERROR_MESSAGE="无效的API请求，比如签名不对";
	public static final String RESPONSE_DATA_VALUE_NON_BODY_ERROR="999103";
	public static final String RESPONSE_DATA_VALUE_NON_BODY_ERROR_MESSAGE="无效的API请求，没有传递消息";
	//重发tryCount<=10的消息
	public static final String RESEND_MESSAGE_LEVEL_HIGH="high";
	//重发10<tryCount<=50的消息
	public static final String RESEND_MESSAGE_LEVEL_MEDIUM="medium";
	//重发50<tryCount<=100的消息
	public static final String RESEND_MESSAGE_LEVEL_LOW="low";
	//重发100<tryCount的消息
	public static final String RESEND_MESSAGE_LEVEL_LOWER="lower";
	//重发tryCount<=10的消息
	public static final int RESEND_MESSAGE_COUNT_HIGH=10;
	//重发10<tryCount<=50的消息
	public static final int RESEND_MESSAGE_COUNT_MEDIUM=50;
	//重发50<tryCount<=100的消息
	public static final int RESEND_MESSAGE_COUNT_LOW=100;
	//重发100<tryCount的消息
	public static final int RESEND_MESSAGE_COUNT_LOWER=500;
	
	
}
